package com.hd.tiyu.yuejian.Service;

import android.database.Observable;
import android.support.v4.media.MediaBrowserServiceCompat.Result;

import java.util.List;
import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Path;
import retrofit2.http.Url;

/**
 * Created by admin on 2017/10/30.
 */

public interface PhotoService {
    //发布晒图
    @Multipart
    @POST("fcreate/mod/shaitu/userid/{userid}/title/{title}")
    Call<ResponseBody> addpost(
            @Path("userid") String userid,
            @Path("title") String title,
            @Part MultipartBody.Part file
    );
}
